<?php
/*

CREATE TABLE link (
	src uuid not null,
	dst uuid not null,
	PRIMARY KEY(id)
) inherits (object);

*/

class Agitum_Orm_Link extends Agitum_Orm_Object
{
    protected function init() 
    {
        parent::init();

        $this->name = 'link';
        $this->title = 'Связь';
       
        $this->schema['src'] = Agitum_Orm_Attribute::factory(
            Agitum_Orm_Attirbute_Type::UUID, 
            array(
                'name' => 'src',
                'title' => 'Источник',
                'sortOrder' => '60'
            )
        );
        
        $this->schema['dst'] = Agitum_Orm_Attribute::factory(
            Agitum_Orm_Attirbute_Type::UUID, 
            array(
                'name' => 'dst',
                'title' => 'назначение',
                'sortOrder' => '70'
            )
        );
    }
}